<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>DOS的系统杂项服务INT 15H介绍 - whowin - 发表我个人原创作品的技术博客</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="whowin" /><meta name="description" content="该文介绍了 DOS 下的 int 15h 的功能，可以作为资料备查
" /><meta name="keywords" content="linux, socket, hugo, dos" />






<meta name="generator" content="Hugo 0.97.3 with theme even" />


<link rel="canonical" href="https://whowin.gitee.io/post/blog/dos/0006-dos-int15h-introduction/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.e3fea119b1980e848b03dffbeddb11dd0fba483eed0e5f11870fb8e31f145bbd.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="DOS的系统杂项服务INT 15H介绍" />
<meta property="og:description" content="该文介绍了 DOS 下的 int 15h 的功能，可以作为资料备查" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://whowin.gitee.io/post/blog/dos/0006-dos-int15h-introduction/" /><meta property="article:section" content="post" />
<meta property="article:published_time" content="2008-04-04T09:32:48+08:00" />
<meta property="article:modified_time" content="2008-04-04T09:32:48+08:00" />

<meta itemprop="name" content="DOS的系统杂项服务INT 15H介绍">
<meta itemprop="description" content="该文介绍了 DOS 下的 int 15h 的功能，可以作为资料备查"><meta itemprop="datePublished" content="2008-04-04T09:32:48+08:00" />
<meta itemprop="dateModified" content="2008-04-04T09:32:48+08:00" />
<meta itemprop="wordCount" content="2685">
<meta itemprop="keywords" content="DOS," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="DOS的系统杂项服务INT 15H介绍"/>
<meta name="twitter:description" content="该文介绍了 DOS 下的 int 15h 的功能，可以作为资料备查"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

  <script async src="/js/busuanzi.pure.mini.js"></script><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9724909319263152"
     crossorigin="anonymous"></script>


</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">WhoWin</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">首页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">文章归档</li>
      </a><a href="/article-categories/categories/">
        <li class="mobile-menu-item">文章分类</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">文章标签</li>
      </a><a href="/about/about/">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">WhoWin</a>
  
  <div style="position:absolute; left: 80px; top: 75px; color: crimson">
      ———开源和分享是技术发展的源泉和动力；本博客所有文章均为原创
  </div>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">首页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">文章归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/article-categories/categories/">文章分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">文章标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/about/">关于</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">DOS的系统杂项服务INT 15H介绍</h1>

      <div class="post-meta">
        <span class="post-time"> 2008-04-04 </span>
        <div class="post-category">
            <a href="/categories/dos/"> DOS </a>
            </div>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#功能概述">功能概述</a></li>
        <li><a href="#1功能00h">(1)、功能00H</a></li>
        <li><a href="#2功能01h">(2)、功能01H</a></li>
        <li><a href="#3功能02h">(3)、功能02H</a></li>
        <li><a href="#4功能03h">(4)、功能03H</a></li>
        <li><a href="#5功能0fh">(5)、功能0FH</a></li>
        <li><a href="#6功能21h">(6)、功能21H</a></li>
        <li><a href="#7功能4fh">(7)、功能4FH</a></li>
        <li><a href="#8功能80h">(8)、功能80H</a></li>
        <li><a href="#9功能81h">(9)、功能81H</a></li>
        <li><a href="#10功能82h">(10)、功能82H</a></li>
        <li><a href="#11功能83h">(11)、功能83H</a></li>
        <li><a href="#12功能84h">(12)、功能84H</a></li>
        <li><a href="#13功能85h">(13)、功能85H</a></li>
        <li><a href="#14功能86h">(14)、功能86H</a></li>
        <li><a href="#15功能87h">(15)、功能87H</a></li>
        <li><a href="#16功能88h">(16)、功能88H</a></li>
        <li><a href="#17功能89h">(17)、功能89H</a></li>
        <li><a href="#18功能90h">(18)、功能90H</a></li>
        <li><a href="#19功能91h">(19)、功能91H</a></li>
        <li><a href="#20功能0c0h">(20)、功能0C0H</a></li>
        <li><a href="#21功能c1h">(21)、功能C1H</a></li>
        <li><a href="#22功能c2h">(22)、功能C2H</a></li>
        <li><a href="#23功能c3h">(23)、功能C3H</a></li>
        <li><a href="#24功能c4h">(24)、功能C4H</a></li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <p>该文介绍了 DOS 下的 int 15h 的功能，可以作为资料备查</p>
<h2 id="功能概述">功能概述</h2>
<ul>
<li>00H — 开盒式磁带机马达</li>
<li>01H — 关盒式磁带机马达</li>
<li>02H — 读盒式磁带机</li>
<li>03H — 写盒式磁带机</li>
<li>0FH — 格式化ESDI驱动器定期中断</li>
<li>21H — 读/写自检(POST)错误记录</li>
<li>4FH — 键盘截听91H —设备加电自检</li>
<li>80H — 设备打开C0H —读取系统环境</li>
<li>81H — 设备关闭C1H —读取扩展BIOS数据区地址</li>
<li>82H — 进程终止C2H —鼠标图形</li>
<li>83H — 事件等待C3H —设置WatcHdog超时</li>
<li>84H — 读[ 游戏 ]杆C4H —可编程选项选择</li>
<li>85H — 系统请求(SysReq)键</li>
<li>86H — 延迟</li>
<li>87H — 移动扩展内存块</li>
<li>88H — 读取扩展内存大小</li>
<li>89H — 进入保护模式</li>
<li>90H — 设备等待</li>
<li>91H — 设备加电自检</li>
<li>C0H — 读取系统环境</li>
<li>C1H — 读取扩展BIOS数据区地址</li>
<li>C2H — 鼠标图形</li>
<li>C3H — 设置WatcHdog超时</li>
<li>C4H — 可编程选项选择</li>
</ul>
<h2 id="1功能00h">(1)、功能00H</h2>
<ul>
<li>功能描述：开盒式磁带机马达</li>
<li>入口参数：AH = 00H</li>
<li>出口参数：CF = 0——操作成功，否则，AH = 状态(86H，若未安装盒式磁带机)</li>
</ul>
<h2 id="2功能01h">(2)、功能01H</h2>
<ul>
<li>功能描述：关盒式磁带机马达</li>
<li>入口参数：AH = 01H</li>
<li>出口参数：CF = 0——操作成功，否则，AH = 状态(86H，若未安装盒式磁带机)</li>
</ul>
<h2 id="3功能02h">(3)、功能02H</h2>
<ul>
<li>功能描述：读盒式磁带机</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 02H
</span></span><span class="line"><span class="cl">CX = 读入的字节数
</span></span><span class="line"><span class="cl">ES:BX = 存放数据的缓冲区地址
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 0——操作成功，
</span></span><span class="line"><span class="cl">DX = 实际读入的字节数，
</span></span><span class="line"><span class="cl">ES:BX指向最后一个字节的后面地址，否则，AH = 状态码，其值含义如下：
</span></span><span class="line"><span class="cl">  01H —— CRC校验码错
</span></span><span class="line"><span class="cl">  80H —— 非法命令
</span></span><span class="line"><span class="cl">  02H —— 位信号混乱
</span></span><span class="line"><span class="cl">  86H —— 未安装盒式磁带机
</span></span><span class="line"><span class="cl">  04H —— 无发现数据
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="4功能03h">(4)、功能03H</h2>
<ul>
<li>功能描述：写盒式磁带机</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 03H
</span></span><span class="line"><span class="cl">CX = 要写入的字节数
</span></span><span class="line"><span class="cl">ES:BX = 已存数据的缓冲区地址
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 0 —— 操作成功，CX = 00H，ES:BX指向最后一个字节的后面地址，
</span></span><span class="line"><span class="cl">否则，AH = 状态码，其值含义如下：
</span></span><span class="line"><span class="cl">      80H —— 非法命令
</span></span><span class="line"><span class="cl">      86H —— 未安装盒式磁带机
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="5功能0fh">(5)、功能0FH</h2>
<ul>
<li>功能描述：格式化ESDI驱动器定期中断，仅在PS/2中有效，在此从略</li>
</ul>
<h2 id="6功能21h">(6)、功能21H</h2>
<ul>
<li>功能描述：读/写自检(POST)错误记录，仅在PS/2中有效，在此从略</li>
</ul>
<h2 id="7功能4fh">(7)、功能4FH</h2>
<ul>
<li>功能描述：键盘截听，仅在PS/2中有效，在此从略</li>
</ul>
<h2 id="8功能80h">(8)、功能80H</h2>
<ul>
<li>功能描述：打开设备</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 80H
</span></span><span class="line"><span class="cl">BX = 设备号
</span></span><span class="line"><span class="cl">CX = 进程号
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 0 —— 操作成功，AH = 00H，否则，AH = 状态码
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="9功能81h">(9)、功能81H</h2>
<ul>
<li>功能描述：关闭设备</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 81H
</span></span><span class="line"><span class="cl">BX = 设备号
</span></span><span class="line"><span class="cl">CX = 进程号
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 0 —— 操作成功，AH = 00H，否则，AH = 状态码
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="10功能82h">(10)、功能82H</h2>
<ul>
<li>功能描述：进程终止</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 81H
</span></span><span class="line"><span class="cl">BX = 进程号
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 0 —— 操作成功，AH = 00H，否则，AH = 状态码
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="11功能83h">(11)、功能83H</h2>
<ul>
<li>功能描述：事件等待</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 83H 若需要事件等待，则：
</span></span><span class="line"><span class="cl">AL = 00H
</span></span><span class="line"><span class="cl">CX:DX = 千分秒
</span></span><span class="line"><span class="cl">ES:BX = 信号量字节的地址
</span></span><span class="line"><span class="cl">否则，调用参数为AL = 01H
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">若调用时，AL = 00H，操作成功——CF = 0，否则，CF = 1
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="12功能84h">(12)、功能84H</h2>
<ul>
<li>功能描述：读[ 游戏 ]杆</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 84H
</span></span><span class="line"><span class="cl">DX = 00H —— 读取开关设置
</span></span><span class="line"><span class="cl">  = 01H —— 读取阻力输入
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 1H —— 操作失败，否则，
</span></span><span class="line"><span class="cl">    DX = 00H时，AL = 开关设置(位7～4)
</span></span><span class="line"><span class="cl">    DX = 01H时，AX、BX、CX和DX分别为A(x)、A(y)、B(x)和B(y)的值
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="13功能85h">(13)、功能85H</h2>
<ul>
<li>功能描述：系统请求(SysReq)键</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 85H
</span></span><span class="line"><span class="cl">AL = 00H——键按下
</span></span><span class="line"><span class="cl">  = 01H——键放开
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：CF = 0——操作成功，AH = 00H，否则，AH = 状态码</li>
</ul>
<h2 id="14功能86h">(14)、功能86H</h2>
<ul>
<li>功能描述：延迟</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 86H
</span></span><span class="line"><span class="cl">CX:DX = 千分秒
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：CF = 0——操作成功，AH = 00H</li>
</ul>
<h2 id="15功能87h">(15)、功能87H</h2>
<ul>
<li>功能描述：从常规内存和扩展内存之间移动扩展内存块</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 87H
</span></span><span class="line"><span class="cl">CX = 移动的字数
</span></span><span class="line"><span class="cl">ES:SI = GDT(Global Descriptor Table)的地址，其结构定义如下：
</span></span><span class="line"><span class="cl">  偏移量存储的信息
</span></span><span class="line"><span class="cl">  00h-0Fh保留，但现全为0
</span></span><span class="line"><span class="cl">  10h-11h段的长度(2CX-1或更大)
</span></span><span class="line"><span class="cl">  12h-14h24位源地址
</span></span><span class="line"><span class="cl">  15h访问权限字节(其值为93h)
</span></span><span class="line"><span class="cl">  16h-17h保留，但现全为0
</span></span><span class="line"><span class="cl">  18h-19h段的长度(2CX-1或更大)
</span></span><span class="line"><span class="cl">  1Ah-1Ch 24位目标源地址
</span></span><span class="line"><span class="cl">  1Dh访问权限字节(其值为93h)
</span></span><span class="line"><span class="cl">  1Eh-2Fh保留，但现全为0
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 0——操作成功，AH = 00H，否则，AH = 状态码，其含义如下：
</span></span><span class="line"><span class="cl">                                        01H —— RAM奇偶错
</span></span><span class="line"><span class="cl">                                        02H —— 异常中断错
</span></span><span class="line"><span class="cl">                                        03H —— 20号线门地址失败
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="16功能88h">(16)、功能88H</h2>
<ul>
<li>功能描述：读取扩展内存大小</li>
<li>入口参数：AH = 88H</li>
<li>出口参数：AX = 扩展内存字节数(以K为单位)</li>
</ul>
<h2 id="17功能89h">(17)、功能89H</h2>
<ul>
<li>功能描述：进入保护模式，CPU从实模式进入保护模式</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 89H
</span></span><span class="line"><span class="cl">BH = IRQ0的中断号
</span></span><span class="line"><span class="cl">BL = IRQ8的中断号
</span></span><span class="line"><span class="cl">ES:SI = GDT的地址(参见功能号87H)
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 1——操作失败，AH = 0FFH，
</span></span><span class="line"><span class="cl">否则，AH = 00H，CS、DS、ES和SS都是用户定义的选择器
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="18功能90h">(18)、功能90H</h2>
<ul>
<li>功能描述：设备等待</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 90H
</span></span><span class="line"><span class="cl">AL = 驱动器类型，具体的驱动器类型定义如下：
</span></span><span class="line"><span class="cl">  = 00H~7FH——串行再重用设备
</span></span><span class="line"><span class="cl">  = 80H~0BFH——可重入式设备
</span></span><span class="line"><span class="cl">  = 0C0H~0FFH——等待访问设备，没有自检功能
</span></span><span class="line"><span class="cl">  00h — 磁盘
</span></span><span class="line"><span class="cl">  02h — 键盘
</span></span><span class="line"><span class="cl">  80h — 网络
</span></span><span class="line"><span class="cl">  FDh — 软盘马达启动01h — 软盘
</span></span><span class="line"><span class="cl">  03h — 点设备(Pointing Device)
</span></span><span class="line"><span class="cl">  FCh — 硬盘复位
</span></span><span class="line"><span class="cl">  FEh — 打印机
</span></span><span class="line"><span class="cl">  ES:BX = 对驱动器类型80H~0FFH的请求块地址
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">CF = 1——操作失败，否则，AH = 00H
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="19功能91h">(19)、功能91H</h2>
<ul>
<li>功能描述：设备加电自检</li>
<li>入口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">AH = 91H
</span></span><span class="line"><span class="cl">AL = 00H~7FH——串行再重用设备
</span></span><span class="line"><span class="cl">  = 80H~0BFH——可重入式设备
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>出口参数：AH = 00H</li>
</ul>
<h2 id="20功能0c0h">(20)、功能0C0H</h2>
<ul>
<li>功能描述：读取系统环境</li>
<li>入口参数：AH = 0C0H</li>
<li>出口参数：
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">成功CF=0并且AH=0，ES:BX = 配置表地址，配置表的定义如下：
</span></span><span class="line"><span class="cl">        偏移量含义说明
</span></span><span class="line"><span class="cl">        00h-01h表的大小(字节数)
</span></span><span class="line"><span class="cl">        02h系统模型
</span></span><span class="line"><span class="cl">        03h系统子模型
</span></span><span class="line"><span class="cl">        04hBIOS版本号
</span></span><span class="line"><span class="cl">        05h配置标志，其各位为1时的说明如下：
</span></span><span class="line"><span class="cl">      　　位7—DMA通道3使用
</span></span><span class="line"><span class="cl">      　　位6—存在从属8259
</span></span><span class="line"><span class="cl">      　　位5—实时时钟有效
</span></span><span class="line"><span class="cl">      　　位4—键盘截听有效
</span></span><span class="line"><span class="cl">      　　位3—等待外部事件有效
</span></span><span class="line"><span class="cl">      　　位2—扩展BIOS数据区
</span></span><span class="line"><span class="cl">      　　位1—微通道设施
</span></span><span class="line"><span class="cl">      　　位0—保留
</span></span><span class="line"><span class="cl">        06h-09h保留
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h2 id="21功能c1h">(21)、功能C1H</h2>
<ul>
<li>功能描述：读取扩展BIOS数据区地址，仅在PS/2中有效，在此从略</li>
</ul>
<h2 id="22功能c2h">(22)、功能C2H</h2>
<ul>
<li>功能描述：鼠标图形，仅在PS/2中有效，在此从略</li>
</ul>
<h2 id="23功能c3h">(23)、功能C3H</h2>
<ul>
<li>功能描述：设置WatcHdog超时，仅在PS/2中有效，在此从略</li>
</ul>
<h2 id="24功能c4h">(24)、功能C4H</h2>
<ul>
<li>功能描述：可编程选项选择，仅在PS/2中有效，在此从略</li>
</ul>
<hr>
<p><strong>欢迎访问我的博客：https://whowin.cn</strong></p>
<p><strong>email: <a href="mailto:hengch@163.com">hengch@163.com</a></strong></p>
<p><img src="https://whowin.gitee.io/images/qrcode/sponsor-qrcode.png" alt="donation"></p>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">whowin</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2008-04-04
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/dos/">DOS</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/blog/dos/0007-network-programming-on-dos-1/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">在DOS下进行网络编程（上）</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/blog/dos/0005-traverse-pci-devices/">
            <span class="next-text nav-default">遍历 PCI 设备</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  <span id="/post/blog/dos/0006-dos-int15h-introduction/" class="leancloud_visitors" data-flag-title="DOS的系统杂项服务INT 15H介绍">
		<span class="post-meta-item-text">文章阅读量 </span>
		<span class="leancloud-visitors-count">0</span>
		<p></p>
	  </span>
  <div id="vcomments"></div>
  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
  <script type="text/javascript">
    new Valine({
        el: '#vcomments' ,
        appId: 'OFCGzCfJRUglzOdzrqMGkbTR-gzGzoHsz',
        appKey: 'v7P29kPAEbsmaavaYPNhGhnF',
        notify:  false ,
        verify:  false ,
        avatar:'mm',
        placeholder: '说点什么吧...',
        visitor:  true 
    });
  </script>

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:hengch@163.com" class="iconfont icon-email" title="email"></a>
  <a href="https://whowin.gitee.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  <div class="busuanzi-footer">
    <span id="busuanzi_container_site_pv"> 本站总访问量 <span id="busuanzi_value_site_pv"><img src="/img/spinner.svg" alt="spinner.svg"/></span> 次 </span>
      <span class="division">|</span>
    <span id="busuanzi_container_site_uv"> 本站总访客数 <span id="busuanzi_value_site_uv"><img src="/img/spinner.svg" alt="spinner.svg"/></span> 人 </span>
  </div>

  <span class="copyright-year">
    &copy; 
    2022 - 
    2024<span class="heart"><i class="iconfont icon-heart"></i></span><span>whowin</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.64437849d125a2d603b3e71d6de5225d641a32d17168a58106e0b61852079683.js"></script>
  <script type="text/javascript">
    window.MathJax = {
      tex: {
        inlineMath: [['$','$'], ['\\(','\\)']],
        }
    };
  </script>
  <script async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-mml-chtml.js" integrity="sha256-HGLuEfFcsUJGhvB8cQ8nr0gai9EucOOaIxFw7qxmd+w=" crossorigin="anonymous"></script>








</body>
</html>
